package com.financing.platform.dao.impl;

import java.sql.SQLException;

import org.springframework.stereotype.Repository;

import com.financing.platform.dao.ICorpProjectDao;
import com.financing.platform.dto.CorpProjectDTO;
import com.financing.platform.util.SqlName;


@Repository("corpProjectDaoImpl")
public class CorpProjectDaoImpl extends BaseDaoImpl implements ICorpProjectDao {

	public int add(CorpProjectDTO corpProjectDTO) throws SQLException {
		return (Integer) this.sqlMapClient.insert(SqlName.addCorpProject, corpProjectDTO);
	}
	
	public CorpProjectDTO queryCorpProject(Integer projectId) throws SQLException{
		return (CorpProjectDTO)this.sqlMapClient.queryForObject(SqlName.queryCorpProjectId, projectId);
	}
}
